<?php
namespace Api\Controller;

/**
 * 版本控制器
 * 
 * @author xiaoyutab<xiaoyutab@qq.com>
 * @version v1.0.0
 * @copyright (c) 2017, xiaoyutab
 * @adtime 2018-05-08 10:44:27
 */
class CheckController extends ApiController{
    /**
     * 版本控制器
     * 
     * @return void
     * @author xiaoyutab<xiaoyutab@qq.com>
     * @copyright (c) 2017, xiaoyutab
     * @version v1.0.0
     * @adtime 2018-05-08 10:44:27
     */
    public function indexAction(){
        $data = array(
            'version'=> get_self_frame_version(),
            'info' => THINK_VERSION,
            'new_url' => array(),
        );
        $version = json_decode(I('get.version'),true);
        if(!$version){
            return $this->returnCode($data);
        }
    }
}